﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DFGK_WMS.Model.Dto
{
    public class PurchaseOrderDTO
    {
        public int Id { get; set; }
        public DateTime OrderDate { get; set; }
        public int PurchasePlanId { get; set; }
        public decimal TotalAmount { get; set; }
        public string Status { get; set; }
    }
    public class PurchaseOrderDetailDTO
    {
        public PurchaseOrderDTO PurchaseOrder { get; set; }
        public List<PurchaseOrderItemDTO> Items { get; set; }
    }

    public class PurchaseOrderItemDTO
    {
        public int Id { get; set; }
        public int PurchaseOrderId { get; set; }
        public string ProductName { get; set; }
        public int Quantity { get; set; }
        public decimal UnitPrice { get; set; }
        public decimal TotalPrice { get; set; }
    }
    public class PurchaseOrderCreateDTO
    {
        public int PurchasePlanId { get; set; }
        public decimal TotalAmount { get; set; }
        public string Status { get; set; }
    }
    public class PurchaseOrdersByDateDTO
    {
        public DateTime StartDate { get; set; }
        public DateTime EndDate { get; set; }
    }
}
